package kr.hkit.powerjava.chapter7;

public class Car {
		
	Car() {} //생산자
	String color;
	private int speed;
	private int gear;
	@Override
	public String toString() {
		return "Car [color=" + color + ", speed=" + speed + ", gear=" + gear
				+ "]";
	}
	public void setColor(String color){
		this.color = color;

	}
	
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	public String getColor() {
		return color;
	}
	public int getGear() {
		return gear;
	}
	public void setGear(int gear) {
		this.gear = gear;
	}

}
	


